package cn.bdqn.service.impl;

import cn.bdqn.dao.BankMapper;
import cn.bdqn.dao.DepartmentMapper;
import cn.bdqn.pojo.Department;
import cn.bdqn.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 正文
 * @date 2020/6/25 - 11:04
 */
//部门
@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;
    @Override
    public List<Department> getList() {

        return departmentMapper.getList();
    }

    @Override
    public int add(Department department) {

        return departmentMapper.add(department);
    }

    @Override
    public List<Department> getListById(int id) {
        return departmentMapper.getListById(id);
    }

    @Override
    public int delete(int id) {
        return departmentMapper.delete(id);
    }

    @Override
    public int update(Department department) {
        return departmentMapper.update(department);
    }
}
